﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">

    <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script>

    <link href="/Content/1144047478-zh-CN-scroll.css" rel="stylesheet" type="text/css" />

    <script src="/Scripts/jquery.menudownlist.js" type="text/javascript"></script>

    <link href="/Scripts/jquery-autocomplete/jquery.autocomplete1.css" rel="stylesheet"
        type="text/css" />

    <script src="../../Scripts/jquery-autocomplete/jquery.autocomplete1.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript">

        $(function() {

            var input = $('#search-restrict-input');
            var button = $('#search-restrict-button');
            var container = $('#search-restrict');

            var open = function() {
                input.focus();
                input.focus();
                input.click();
                input.select();
                button.addClass('goog-combobox-active');
                closed = false;
            };

            var close = function() {
                input.blur();
                $(this).addClass('label-input-label');
                button.removeClass();
                closed = true;
            };

            var closed = true;
            input.focus(function() { $(this).removeClass(); });
            input.blur(function(evt) {
                button.removeClass();
                closed = true;
            });

            input.autocomplete(['aaabd', 'aaabd', 'aaabd', 'aaabd', 'aaabd', 'aaabd', 'aaabd', 'aaabd', 'aaabd', 'aaabd', 'ccda', 'xxex']
            , { minChars: 0, max: 50 })
            .result(close);

            container.mousedown(function(evt) {
                if (closed)
                    open();
                else
                    close();
                if (!closed)
                    evt.preventDefault();
            });

        });
    </script>

    <div title='"选择文件夹"' id="search-restrict">
        <div id="search-restrict-button">
            <div class="goog-button goog-button-base unselectable goog-inline-block goog-button-float-left goog-menu-button goog-button-tight"
                tabindex="0" role="wairole:button">
                <div class="goog-button-base-outer-box goog-inline-block">
                    <div class="goog-button-base-inner-box goog-inline-block">
                        <div class="goog-button-base-pos">
                            <div class="goog-button-base-top-shadow">
                            </div>
                            <div class="goog-button-base-content">
                                <div class="goog-button-body">
                                    <div class="search-restrict-contents">
                                        <input label="所有条目" id="search-restrict-input" class="label-input-label" /></div>
                                </div>
                                <div class="goog-menu-button-dropdown" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
